﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ttbit.core
{
    public static class FontPool
    {
        static Dictionary<string, Font> mapFont = new Dictionary<string, Font>();
        public static Font GetFont(string name)
        {
            return mapFont[name];
        }
        public static Font AscII12
        {
            get;
            private set;
        }
        public static void AddNamedFont(string name,Font font)
        {
            if (font.size == 12 && AscII12 == null)
                AscII12 = font;
            mapFont[name] = font;
        }


    }
}
